﻿@model PypinBoots.Models.empresa

@{
    ViewBag.Title = "Editar";
}

<h2>Editar</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Empresa</legend>

        <div class="editor-label">
            Nombre
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nombre)
            @Html.ValidationMessageFor(model => model.Nombre)
        </div>

        <div class="editor-label">
            Dirección
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Direccion)
            @Html.ValidationMessageFor(model => model.Direccion)
        </div>

        <div class="editor-label">
            Teléfono
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Telefono)
            @Html.ValidationMessageFor(model => model.Telefono)
        </div>

        <div class="editor-label">
            EMAIL
        </div>
        <div class="editor-field">

            <input name="Email" class="span3" type="email" required>
            @Html.ValidationMessageFor(model => model.EMail)
        </div>

        <div class="editor-label">
            RUC
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RUC)
            @Html.ValidationMessageFor(model => model.RUC)
        </div>

        <div class="checkbox">
            @Html.EditorFor(model => model.Borrado)Borrado
            @Html.ValidationMessageFor(model => model.Borrado)
        </div>
        <br>
        <p>
            <button type="submit" class="btn">Guardar</button>
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Volver", "Index")
</div>


@*@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}*@
